import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import "./css/index.less";
import App from "./App";
// import reportWebVitals from './reportWebVitals';
import { BrowserRouter as Router } from "react-router-dom";
import { ConfigProvider, theme } from "antd";
import zhCN from 'antd/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import 'video-react/dist/video-react.css';
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';

dayjs.locale('zh-cn');

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <Router basename={process.env.PUBLIC_URL}>
    <ConfigProvider locale={zhCN} theme={{
      // algorithm: theme.darkAlgorithm,
    }}>
      <StyleProvider hashPriority="high" transformers={[legacyLogicalPropertiesTransformer]}>
        <App />
      </StyleProvider>
    </ConfigProvider>
  </Router>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();
